import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		while(in.hasNext()){
			BigDecimal a = new BigDecimal(in.next());
			BigDecimal b = new BigDecimal(in.next());
			System.out.println(a.add(b));
			System.out.println(a.multiply(b));
		}
	}
}